package cn.lili.modules.promotion.service;

import cn.lili.common.vo.PageVO;
import cn.lili.modules.promotion.entity.dos.Advertising;
import cn.lili.modules.promotion.entity.dos.AdvertisingSpace;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @author:xiangqian
 * @date: 2024/4/17 9:17
 */
public interface AdvertisingSpaceSerivce extends IService<AdvertisingSpace> {

    /**
     * 分页查询贡献值明细
     *
     * @param advertisingSpace 查询条件{@link AdvertisingSpace}
     * @param page             分页条件{@link PageVO}
     * @return 分页返回结果
     */
    Page<AdvertisingSpace> pageSpace(AdvertisingSpace advertisingSpace, PageVO page);

    /**
     * 启用/关闭广告位
     *
     * @param advertisingSpace
     * @return
     */
    Boolean updateStatus(AdvertisingSpace advertisingSpace);
}
